gtk-builder-tool: Validate templates
authorMatthias Clasen <mclasen@redhat.com>
Thu, 30 Apr 2015 05:18:48 +0000 (01:18 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 30 Apr 2015 10:19:10 +0000 (06:19 -0400)
commitec053398585ec023f18ae7d1e72ea91222921755
tree6e58cb7a493fc4cd4c0b5e9122acc5cf99818458
parent6535276c3e59461eb712a2c283e2b6b7367f3129
gtk-builder-tool: Validate templates

Catch an error that indicates the file looks like a template,
and then try again, this time with the template parsing API
of GtkBuilder. This is a little iffy, since we need to create
a 'fake' type and instance to pass in, but it works ok in
simple tests.
gtk/gtk-builder-tool.c